﻿using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Domain.Interface.StartInterface
{
    public interface IStartRepository
    {
        /// <summary>
        /// 期初显示
        /// </summary>
        /// <returns>返回期初表数据</returns>
        Task<List<Start>> GetStartList();


        /// <summary>
        /// 添加期初表数据
        /// </summary>
        /// <param name="inputs">实体</param>
        /// <returns>返回受影响的行数</returns>
        Task<int> AddStartAsync(List<Start> inputs); //期初表添加



        /// <summary>
        /// 逻辑删除期初数据
        /// </summary>
        /// <param name="startId">主键id</param>
        /// <returns>受影响的行数</returns>
        Task<int> DeleteStart(int startId);   //期初删除（逻辑删除）


        /// <summary>
        /// 批量逻辑删除期初表
        /// </summary>
        /// <param name="startIds">id</param>
        /// <returns>返回数据</returns>
        Task<int> DeleteRangeStart(IEnumerable<int> startIds); //期初表批量删除（逻辑批量删除）



        /// <summary>
        /// 反填期初表
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>返回数据</returns>
        Task<Start> GetByIdAsync(int startId);  //期初表反填


        /// <summary>
        /// 修改期初表
        /// </summary>
        /// <param name="start">期初实体</param>
        /// <returns>受影响的行数</returns>
        Task<int> UpdateAsync(Start start); //期初表修改



       
   
      

    }
}
